/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.order.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单礼品详情
 *
 * @author pigx code generator
 * @date 2023-12-06 23:05:47
 */
@Data
@TableName("order_gift_detail")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单礼品详情")
public class OrderGiftDetail extends Model<OrderGiftDetail> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "id")
	private Long id;

	/**
	 * 订单号
	 */
	@Schema(description = "订单号")
	private Long orderId;

	/**
	 * 礼品ID
	 */
	@Schema(description = "礼品ID")
	private Long giftId;

	/**
	 * 礼品名称
	 */
	@Schema(description = "礼品名称")
	private String giftName;

	/**
	 * 自定义赠品封面图
	 */
	@Schema(description = "自定义赠品封面图")
	private String coverImage;

	/**
	 * 轮播图
	 */
	@Schema(description = "轮播图")
	private String bannerImages;

	/**
	 * 详情图
	 */
	@Schema(description = "详情图")
	private String detailImages;

	/**
	 * 品牌
	 */
	@Schema(description = "品牌")
	private String brand;

	/**
	 * 源产地
	 */
	@Schema(description = "源产地")
	private String origin;

	/**
	 * 规格
	 */
	@Schema(description = "规格")
	private String specs;

	/**
	 * 尺寸
	 */
	@Schema(description = "尺寸")
	private String size;

	/**
	 * 颜色
	 */
	@Schema(description = "颜色")
	private String color;

	/**
	 * 发货类型 1: 单品 2: 批量
	 */
	@Schema(description = "发货类型 1: 单品 2: 批量")
	private String sendType;

	/**
	 * 赠送数量
	 */
	@Schema(description = "赠送数量")
	private Integer count;

	/**
	 * 删除标记
	 */
	@TableLogic
	@Schema(description = "删除标记")
	private String delFlag;

	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 创建人
	 */
	@Schema(description = "创建人")
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	/**
	 * 修改时间
	 */
	@Schema(description = "修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	/**
	 * 更新人
	 */
	@Schema(description = "更新人")
	@TableField(fill = FieldFill.UPDATE)
	private String updateBy;

}
